/**
 * Created by Well
 * Date-Time: 2022-01-28
 * E-mail: well634890@126.com
 */

import { request } from 'umi';

export async function login(body, options) {
  return request('/api/user/login', {
    method: 'post',
    data: body,
    ...(options || {}),
  });
}
